package com.qfedu.dao;

import com.qfedu.entity.Functionwithgroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FunctionwithgroupDao extends JpaRepository<Functionwithgroup, Long> {

    List<Functionwithgroup> findAllByGroupId(Long groupId);


    Functionwithgroup save(Functionwithgroup functionwithgroup);


    Integer deleteByGroupId(Long id);

}
